package ups.MapParse;

public class StringTransform {
	private PositionedString source;
	private String dest;
	static DistanceCalculator dc = new DistanceCalculator();
	public StringTransform( PositionedString src, String dst ) {
		source 	= src;
		dest 	= dst;
	}
	
	public PositionedString getSource() {
		return source;
	}
	
	public String getDestination() {
		return dest;
	}
	
	public int distance() {
		return dc.distance2( source.getString(), dest );
	}

	public String toString() {
		return source.getString() + " => " + dest + " (" + distance() + ")";
	}
}
